package com.zhentao.util;

import java.util.regex.Pattern;

/**
 * @author TonySong
 * @date 2024/6/6 0006
 * @time 10:07
 */
public class PatternUtil {

    private static final Pattern CHINESE = Pattern.compile("[\u4E00-\u9FA5]{2,}");
    private static final Pattern NUMBER = Pattern.compile("\\d");
    public static final Pattern LETTER = Pattern.compile("[a-zA-Z]");
    public static final Pattern IDEN = Pattern.compile("\\d{18}|\\d{15}");


    public static  boolean isChinese(String str){
        return CHINESE.matcher(str).matches();
    }


}
